package com.ruoyi.store.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 库存盘点对象 finer_stock_taking
 *
 * @author lmj
 * @date 2024-11-04
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class StockTaking extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 盘点单id
     */
    private Integer id;

    /**
     * 盘点单编号
     */
    @Excel(name = "盘点单编号")
    private String takingCode;

    /**
     * 仓库id
     */
    @Excel(name = "仓库id")
    private Integer houseId;
    private String houseName;

    /**
     * 商品分类id
     */
    @Excel(name = "商品分类id")
    private Integer typeId;
    private String typeName;

    /**
     * 状态
     */
    @Excel(name = "状态")
    private Integer status;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /**
     * 修改人
     */
    @Excel(name = "修改人")
    private String modifyBy;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifyDate;

    /**
     * 是否删除
     */
    @Excel(name = "是否删除")
    private Integer isDel;
    private List<StockTakingDetail> stockTakingDetails;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("takingCode", getTakingCode())
                .append("houseId", getHouseId())
                .append("typeId", getTypeId())
                .append("status", getStatus())
                .append("createBy", getCreateBy())
                .append("createDate", getCreateDate())
                .append("modifyBy", getModifyBy())
                .append("modifyDate", getModifyDate())
                .append("isDel", getIsDel())
                .toString();
    }
}
